package com.projects.soundza.app.factory;

import java.util.Date;
import java.util.Map;

import com.projects.soundza.domain.Address;
import com.projects.soundza.domain.Contact;
import com.projects.soundza.domain.Person;

public class PersonFactory {
	public static Person getPerson(Map<String, String> values, Date dateOfBirth, Address address, Contact contact)
	{
		Person entity = new Person();
		entity.setAddress(address);
		entity.setContact(contact);
		entity.setDateOfBirth(dateOfBirth);
		entity.setGender(values.get("gender"));
		entity.setName(values.get("name"));
		entity.setSurname(values.get("surname"));
		return entity;
	}
}
